package org.lewis.common.service;

import java.util.List;
import java.util.Map;

import org.lewis.common.domain.User;


public interface UserService {
	
	long createUser(User user);
	
	User getUserById(long id);
	
	User getUserByEmail(String email);
	
	User getUserByName(String name);
	
	User getUserByEmailAndPwd(String email,String pwd);
	
	void updateUserStatus(long uid,int status);
	
	void updateUserPassword(long uid,String pwd);
	
	void updateUserPhoto(long uid,String photo);
	
	void updateUserDesc(long uid,String desc);
	
	void updateUserTags(long uid,String tags);
	
	List<User> queryByPage(int page,int size,Map<String, Object> data);

}
